//
//  CustomCollectionViewCell.m
//  UI---8.9--婚礼记
//
//  Created by 北风 on 14-10-5.
//  Copyright (c) 2014年 高敬轩. All rights reserved.
//

#import "CustomCollectionViewCell.h"

@implementation CustomCollectionViewCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        _button1 = [[UIImageView alloc] init];
//        _button1.userInteractionEnabled = YES;
        [_button1 setBackgroundColor:[UIColor blueColor]];
        [_button1 setFrame:CGRectMake(7, 7, 96, 96)];
        [self.contentView addSubview:_button1];
        
        _small1 = [[UILabel  alloc] init];
//        _small1.userInteractionEnabled = YES;
        _small1.font = [UIFont systemFontOfSize:13];
        _small1.textAlignment = NSTextAlignmentCenter;
        _small1.textColor = [UIColor orangeColor];
        _small1.layer.cornerRadius = 3;
//        _small1.layer.masksToBounds = YES;
        [_small1 setBackgroundColor:[self TextColor]];
        [_small1 setFrame:CGRectMake(25, 75, 40, 15)];
        [self.button1 addSubview:_small1];
           
    }
    return self;
}

-(UIColor *)TextColor{
    
    
    UIColor *color = [UIColor colorWithWhite:255 alpha:0.8];
    return color;
    
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
